package org.hawk.gwtppc.webtest.tests.methodsuite;

import org.hawk.gwtppc.webtest.common.Asserts;
import org.hawk.gwtppc.webtest.common.Test;
import org.hawk.gwtppc.webtest.tests.mock.SubClassMock2;

public class GetReturnTypeTest implements Test {

	public void run() throws Throwable {
		Asserts.assertEquals(SubClassMock2.class.getDeclaredMethod("processValue").getReturnType(), void.class);
		Asserts.assertEquals(SubClassMock2.class.getDeclaredMethod("processValue", int.class).getReturnType(), int.class);
		Asserts.assertEquals(SubClassMock2.class.getDeclaredMethod("processValue", int.class, Object.class)
				.getReturnType(), Object.class);
		Asserts.assertEquals(SubClassMock2.class.getDeclaredMethod("processValue", int.class, Object.class, 
				SubClassMock2.class).getReturnType(), SubClassMock2.class);
	}

	public String getName() {
		return "getReturnType()";
	}

}
